package com.tiantianfresh.admin.service;

import com.tiantianfresh.model.pojo.Rotationchart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface RotationchartService {
    //增加一个轮播图
    boolean addRotationchart(Rotationchart rotationchart);
    //查询全部Rotationchart,返回list集合
    List<Rotationchart> selectAll();
    //修改r_commodity的上下架状态
    int deleteRotationchartById(Map<String,Integer> map);
    //更新Rotationchart
    boolean updateRotationchart(Rotationchart rotationchart);
    //根据id查询 返回一个Rotationchart
    Rotationchart queryRotationchartById(int id);
    //删除轮播图
    boolean deltePermission(Integer id);
}

